package Cafezam;

import java.util.Scanner;

public class Rectangle {
	// 사각형 면적, 둘레 계산하는 프로그램
	// 입력값:가로,세로,색상
	public static void main(String[] args) {
		// 1.변수선언 및 초기화
		// 2.계산 및 연산
		// 3.결과출력
		double width = 1.0;
		double height = 1.0;
		String color = "white";
		double getArea;
		double getPerimeter;

		getArea = width * height;
		getPerimeter = (width + height) * 2;
		System.out.println(width);
		System.out.println(height);
		System.out.println(getArea);
		System.out.println(getPerimeter);
		System.out.println(color);

		// 시험값1:4,40,red
		width = 4;
		height = 40;
		color = "red";
		getArea = width * height;
		getPerimeter = (width + height) * 2;

		System.out.println(width);
		System.out.println(height);
		System.out.println(getArea);
		System.out.println(getPerimeter);
		System.out.println(color);

		width = 3.5;
		height = 35.9;
		color = "orange";
		getArea = width * height;
		getPerimeter = (width + height) * 2;

		System.out.println(width);
		System.out.println(height);
		System.out.println(getArea);
		System.out.println(getPerimeter);
		System.out.println(color);

		// Scanner a =new Scanner(System.in);
		//
		// double width=1.0,height=1.0;
		// String color="white";
		//
		// System.out.println("가로를 입력하시오");
		// width=a.nextDouble();
		// System.out.println("세로를 입력하시오");
		// height=a.nextDouble();
		// System.out.println("색깔을 입력하시오");
		// color=a.next();
		// System.out.println("가로"+width+"세로"+height+"색깔"+color);
		// double getarea=width*height;
		// double getperimeter=(width+height)*2;
		// System.out.println("면적"+getarea+"둘레"+getperimeter);
		//
		// // int aid=0;
		// // System.out.println("계좌번호:");
		// // aid=a.nextInt();
		// // int balance=0;
		// // System.out.println("통장잔액:");
		// // balance=a.nextInt();
		// // String dateCreated;
		// System.out.println("통장개설날짜:");
		// dateCreated=a.next();
		// double getMonthlyInterestRate;
		// System.out.println("월간 이자율 %:");
		// getMonthlyInterestRate=a.nextDouble();
		// int withdraw=0;
		// System.out.println("인출할 금액:");
		// withdraw=a.nextInt();
		// balance=balance-withdraw;
		// int deposit=0;
		// System.out.println("예금할 금액:");
		// balance=balance-deposit;
		// getMonthlyInterestRate=(getMonthlyInterestRate/100);
		// System.out.println("------------------------");
		// System.out.println("------------------------");
		// System.out.println("계좌번호:"+aid);
		// System.out.println("통장개설날짜:"+dateCreated);
		// System.out.println("통장잔액:"+balance);
		// System.out.println("월간 이자율 :"+getMonthlyInterestRate+"%");
		//
		//

	}

}
